﻿<Page
    x:Class="CharmDemoApp.MainPage"
    IsTabStop="false"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CharmDemoApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:cfo="using:CharmFlyoutLibrary"
    mc:Ignorable="d">
    <Grid>
        <cfo:CharmFlyout
            x:Name="cfoSettings"
            Heading="My Flyout"
            HeadingBackgroundBrush="#FF4E0000">
            <StackPanel>
                <TextBlock
                    FontSize="16">CharmFlyout by John Michael Hauck</TextBlock>
                <TextBlock
                    FontSize="16">For support:</TextBlock>
                <HyperlinkButton
                    Click="OnMailTo">support@bing.com</HyperlinkButton>
            </StackPanel>
            <cfo:CharmFlyout.Logo>
                <Rectangle
                    Fill="Green"
                    Width="30"
                    Height="30" />
            </cfo:CharmFlyout.Logo>
        </cfo:CharmFlyout>
        <TextBlock
            VerticalAlignment="Center"
            HorizontalAlignment="Center"
            FontSize="25"
            Foreground="Blue">
                Swipe the right side of the screen to show the Settings Charm
                <LineBreak />
                <LineBreak />
                CharmFlyout Demo
                <LineBreak />
                By John Michael Hauck
            <TextBlock.Transitions>
                <TransitionCollection>
                    <EntranceThemeTransition
                        FromVerticalOffset="400"
                        FromHorizontalOffset="0" />
                </TransitionCollection>
            </TextBlock.Transitions>
        </TextBlock>
        <TextBlock
            x:Name="isOpenTextBlock"
            HorizontalAlignment="Left" />
    </Grid>
</Page>
